package com.yixun.qfbao.enums;



/**
 * 错误代码维护
 * 
 * @author Administrator
 * 
 */
public enum FileTypeEnum {
	_img("1","image","图片"),
	_default("0","default","默认"),
	_img_three("3","imageThree","大中小图"),
	;
	

	/**
	 * 描述
	 */
	private String no;
	/**
	 * 描述
	 */
	private String path;
	/**
	 * 描述
	 */
	private String des;
	
	private FileTypeEnum(String no,String path,String des){
		this.no = no;
		this.path = path;
		this.des = des;
	}


	public String getNo() {
		return no;
	}


	public void setNo(String no) {
		this.no = no;
	}


	public String getPath() {
		return path;
	}


	public void setPath(String path) {
		this.path = path;
	}


	public String getDes() {
		return des;
	}

	public void setDes(String des) {
		this.des = des;
	}

	public static FileTypeEnum getByNo(String no){
		if(no!=null){
			for(FileTypeEnum yn:values()){
				if(yn.getNo().equals(no)){
					return yn;
				}
			}
		}
		return FileTypeEnum._default;
	}
	
	
}
